package com.imu.purse.modules.app.service;

import java.util.List;

import com.imu.purse.modules.app.entity.UserCheckEntity;

public interface UserCheckService 
{
	/****
	 * 插入
	 * @param userCheck
 	 * @date 2018-07-19 14:30:09
	 * @return
	 */
    public int save(final UserCheckEntity userCheck);
    
    /****
	 * 删除
	 * @param ids
 	 * @date 2018-07-19 14:30:09
	 * @return
	 */
    public boolean delete(final String ...ids);
    
    /****
	 * 修改
	 * @param userCheck
 	 * @date 2018-07-19 14:30:09
	 * @return
	 */
    public int update(final UserCheckEntity userCheck);
    
     /****
	 * 插入或跟新
	 * @param userCheck
 	 * @date 2018-07-19 14:30:09
	 * @return
	 */
    public int saveUpdate(final UserCheckEntity userCheck);
    
    /****
	 * 根据ID查询
	 * @param id
 	 * @date 2018-07-19 14:30:09
	 * @return
	 */
    public UserCheckEntity findById(final Long id);
    
    /****
   	 * 分页查询
	 * @param userCheck
 	 * @date 2018-07-19 14:30:09
   	 * @return
   	 */
    public List<UserCheckEntity> queryList(final UserCheckEntity userCheck);
    
    /****
	 * 根据用户id真删除校验信息
	 * @param userId
	 * @return
	 */
    public boolean deleteByUserId(Long userId);
    
    /****
	 * 根据ID查询
	 * @param id
 	 * @date 2018-07-19 14:30:09
	 * @return
	 */
    public UserCheckEntity findByUserId(final Long userId);
}
